public class StringDemo {
    public void Text (){

            StringBuilder stringBuilder = new StringBuilder();
        stringBuilder = stringBuilder.append("h").append("e").append("llo").append("word!");
        String str = stringBuilder.toString();
            System.out.println(str);

            stringBuilder.delete(2,3);
            System.out.println(stringBuilder.toString());
    }
}
